<extend name="common:base" />
<block name="content">
    <a href="{:U('User/logout')}">退出登录</a>
    <volist name="good" id="vo">
        <div>
            <p><a href="{:U('Order/detail',array('id'=>$vo['id']))}"><img src="{$vo['img']}"></a></p>
            <p>商品名称：{$vo['g_name']}</p>
            <p>分类：{$vo['c_name']}</p>
            <p>品牌：{$vo['b_name']}</p>
            <p>商品描述： {$vo['info']|htmlspecialchars_decode}</p>
        </div>
    </volist>
    <a href="jvascript:;" id="more">点击查看更多</a>
</block>

<block name="JS">
    <script type="text/javascript">
        $(function () {
            var current = 0;
            $('#more').click(function () {
                current++;

                $.ajax({
                    url: '{:U("Good/more")}',
                    type: 'post',
                    data: {
                        'current': current
                    }
                });

            });
        });
    </script>
</block>
